#include "defs.h"

typedef struct Input
{
    int left, right, up, down, jump, attack, enter, escape;
}Input;

typedef struct Gestion
{
    SDL_Surface *screen;
    int nombreMonstres;
    int nombreFireballs;
    int timeBegin;

    int continuer;
    
    SDL_Surface *HUD_vie, *HUD_etoiles ,*Shuriken_image, *gameOver;
    int vies, etoiles;

    int score,time;
}Gestion;

typedef struct Map
{
    SDL_Surface *background;
    int startX,startY,maxX;
}Map;

typedef struct GameObject
{
    SDL_Surface *sprite, *res[2];

    int x, y;
    int h, w;

    int frameNumber, frameTimer;
    int etat, direction;

    int onGround, timerMort;
    float dirX, dirY;

    int LastX;
}GameObject;

typedef struct MenuResource
{
    SDL_Surface *background ,*option[4] ,*optionSelected[4];
    int x[4],y[4];

    int on ,choice ,nbrBouton;
}MenuResource;
